
import request from '@/util/request'

export function getCount() {
  return request({
    url: '/api/store/counter',
    method: 'get'
  })
}

export function getAddress() {
  return request({
    url: '/api/order/query-address',
    method: 'get'
  })
}

export function extract(data) {
  return request({
    url: '/api/store/extract',
    method: 'post',
    data
  })
}

// 云仓记录
export function list(data) {
  return request({
    url: '/api/store/list',
    method: 'post',
    data
  })
}

//  进货与出货 -------------------------------------------------

export function logReferrer(data) {
  return request({
    url: '/api/store/referrer-log',
    method: 'post',
    data
  })
}

export function getReferrer(data) {
  return request({
    url: '/api/store/get-referrer',
    method: 'post',
    data
  })
}

export function saveReferrer(data) {
  return request({
    url: '/api/store/save-referrer',
    method: 'post',
    data
  })
}

export function getSellList(data) {
  return request({
    url: '/api/store/get-sell-list',
    method: 'post',
    data
  })
}

export function sellCheck(data) {
  return request({
    url: '/api/store/sell-check',
    method: 'post',
    data
  })
}

export function sellReject(data) {
  return request({
    url: '/api/store/sell-reject',
    method: 'post',
    data
  })
}

